package com.et.util.listener;



import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;


/**
 * 系统启动监听器，主要用来初始化dataSet数据
 *
 */
public class AppInit implements ServletContextListener {

	public void contextInitialized(ServletContextEvent event) {
		System.out.println("启动..... ");
		//DataSetDao dataSetService=(DataSetDao)SpringUtil.getBeanFromContext("dataSetDao");
		try {
			//dataSetService.loadDataFromXml();
			System.out.println("dataSet装载成功..... ");
		} catch (Exception e) {
			System.out.println("dataSet装载失败..... ");
		} 
	}

	public void contextDestroyed(ServletContextEvent arg0) {
		System.out.println("系统关闭..... ");
	}
	
}
